$(document).ready(function () {
    $("button").click(function () {
        var fso = new ActiveXObject("Scripting.FileSystemObject","C:/test.txt");
        var f1 = fso.text;

        $.ajax({
            url: 'test.txt',
            dataType: 'text',
            success: function(data) {
                alert(data);
            }
        });
    });
});
